<template>
  <div class="userinfo-manage-wrap">
    <el-row v-if="$store.state.userinfo.isMuilUnitUser === 1" class="overclick-wrap" :gutter="40" type="flex" >
      <el-col :span="4">
        <div class="item-wrap" @click="currentTab=1" :class="currentTab==1 ? 'active' : ''">
          <div class="item-content">
            <p class="item-title">用户视图</p>
          </div>
        </div>
      </el-col>
      <el-col :span="4">
        <div class="item-wrap" @click="currentTab=2" :class="currentTab==2 ? 'active' : ''">
          <div class="item-content">
            <p class="item-title">单位视图</p>
          </div>
        </div>
      </el-col>
    </el-row>
    <!-- 用户视图 -->
    <user-info v-if="currentTab==1"></user-info>
    <!-- 业主单位视图 -->
    <units v-else></units>
  </div>
</template>

<script>
import UserInfo from './PageModel/UserInfo'
import Units from './PageModel/Units'

export default {
  name:'UserManage',
  components: {
    UserInfo,
    Units
  },
  data() {
    return {
      currentTab: 1
    }
  },
  created() {},
  methods: {}
}
</script>
<style lang="scss">

</style>
